package com.project.myPackage.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Orders implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId( type = IdType.AUTO)
    private Integer order_id;
    private Integer user_id;
    private Integer address_id;
    private Float total_amount;
    //订单状态（未支付1、已支付2、已发货3、已完成4、已退款5、已取消6）
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime created_at;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;
}
